<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
<head>
 <%@ include file="/core/memberMeta.jsp"%>
	<script type="text/javascript"> 
		var checkSubmitFlg = false;   
		function checkSubmit() {   
			if (checkSubmitFlg == true) {   
				return false;   
			}   
			checkSubmitFlg = true;   
			return true;   
		}   
		document.ondblclick = function docondblclick() {   
			window.event.returnValue = false;   
		}   
		document.onclick = function doconclick() {   
			if (checkSubmitFlg) {   
				window.event.returnValue = false;   
			}   
		}   
	</script>
</head>

<body data-type="widgets">
    <script src="<%=basePath%>/resources/memberCss/assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">

            <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <div class="page-header-heading"><span class="am-icon-key page-header-heading-icon"></span> 留言信息</div>
                        <p class="page-header-description">欢迎光临BHP必和必拓矿业投资中国区</p>
                    </div>
                     
                </div>

            </div>
			<div class="row-content am-cf">
                    

                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12 widget-margin-bottom-lg" >

                    <div class="widget am-cf  ">
						<div class="widget-head am-cf">
                            <div class="widget-title am-fl">留言信息</div> 
                            <div class="widget-function am-fr">
                                <a href="javascript:;" class="am-icon-cog"></a>
                            </div>
                        </div>
                        <div class="widget-body  am-fr">
                            <div class="am-scrollable-horizontal ">
                            	<fieldset> 
					
									<legend style="color: white;">留言内容</legend> 
									
									<table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black "  id="example-r">
										<tr>
											<td width="10%">标题：</td>
											<td width="40%">${message.title}</td>
											
											<td width="10%">状态：</td>
											<td width="40%">
												<c:if test="${message.type=='10'}"><font color="red">未处理</font></c:if>
												<c:if test="${message.type=='20'}"><font color="blue">已处理</font></c:if>
											</td>
										</tr>
										<tr>
											<td>内容：</td>
											<td colspan="3">
												${message.content}
												<c:if test="${message.filePath!=null}">
													<br/>
													 
													
													<a href="<%=basePath%>temp/${message.fileName}" target="_blank">
														<img src='<%=basePath%>temp/${message.fileName}' style="width: 200px;height: 200px;"/>
													</a>
												</c:if>
											</td>
										</tr>
										
									</table>
								</fieldset>
								<fieldset> 
					
									<legend style="color: white;">留言回复</legend> 
									
									<table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black "  id="example-r">
			<c:forEach items="${list}" var="o">
										<tr>
											<td width="10%">${o.operDate}</td>
											<td width="90%">
												<div style="text-align:left;">
													${o.content}
													<c:if test="${o.filePath!=null}">
														<br/>
														
														<a href="<%=basePath%>temp/${o.fileName}" target="_blank">
															<img src='<%=basePath%>temp/${o.fileName}' style="width: 150px;height: 150px;"/>
														</a>
													</c:if>
												</div>						
											</td>
										</tr>
			</c:forEach>							
									</table>
								</fieldset>
                                 
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    </div>
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui2.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui.datatables.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/dataTables.responsive.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/app.js"></script>

</body>


